A time machine is a device or concept that allows someone to travel through time and visit different points in the past or future.